import request from '@/utils/request'


export default {
    save(data){
        return request({
            url:"/system/user/save",
            method:"post",
            data
        })
    },
    page(page,pagesize,data){
        return request({
            url:`/system/user/${page}/${pagesize}`,
            method:"get",
            params:data
        })
    },
    update(data){
        return request({
            url:"/system/user",
            method:"put",
            data
        })
    },
    delete(userId){
        return request({
            url:`/system/user/${userId}`,
            method:"delete"
        })
    }
}